package com.dingpeikeji.quickdeer.modules.rentproduct.entity;

import javax.validation.constraints.NotNull;
import java.util.Date;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.dingpeikeji.quickdeer.core.modules.sys.entity.Office;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 到账登记Entity
 * @author wuh
 * @version 2016-08-30
 */
public class OfficeSave extends DataEntity<OfficeSave> {
	
	private static final long serialVersionUID = 1L;
	private String reserveid;		// 主键
	private Office office;		// 公司
	private Date billdate;		// 到账日期
	private String amount;		// 到账金额
	
	// 日期范围查询
	private String billdateStart;
	private String billdateEnd;
	
	public OfficeSave() {
		super();
	}

	public OfficeSave(String id){
		super(id);
	}

	public String getReserveid() {
		return reserveid;
	}

	public void setReserveid(String reserveid) {
		this.reserveid = reserveid;
	}
	
	@NotNull(message="公司不能为空")
	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="到账日期不能为空")
	public Date getBilldate() {
		return billdate;
	}

	public void setBilldate(Date billdate) {
		this.billdate = billdate;
	}
	
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getBilldateStart() {
		return billdateStart;
	}

	public void setBilldateStart(String billdateStart) {
		this.billdateStart = billdateStart;
	}

	public String getBilldateEnd() {
		return billdateEnd;
	}

	public void setBilldateEnd(String billdateEnd) {
		this.billdateEnd = billdateEnd;
	}

	
}